<?php

$dir = dirname(dirname(__FILE__));
include($dir.'/__queue_global.php');

ml_run_queue_check(ML_CRONPHP_GUANG_UPDATEHOTRANK);

$log_dir_path  = SYSDEF_LOG_DATA_PATH;
$log_path = $log_dir_path.'/updatesearch/file.log';
$log_path_doing = $log_dir_path.'/updatesearch/file_ing.log';
if(!is_file($log_path))
{
    die('no_log');
}



//移动LOG
rename($log_path , $log_path_doing);
$cmd = "awk '{print $1}' ".$log_path_doing." | sort | uniq > ./update_rid.log";
exec($cmd);
$fp = fopen('./update_rid.log' , 'r');
while (!feof($fp))
{
    $rid = trim(fgets($fp));
    ml_tool_sendMq::search_content('A', $rid);
}
